<?php
class com_modmanagerModelModules extends Zendvn_Model_AdminAbtract{
	public function init(){
		parent::init();
	}
	/*
	 * get all module's list: by position 
	 */
	public function listItemsByPossitonPulished($request){
		$sql = $this->_db->select()
				->from("modules as m",array('id','title'))
				->where('position = ?',$request['position'])
				->where('published = 1')
				->joinLeft("template_styles as t", 't.area = m.area');
		
		
		return $this->_db->fetchPairs($sql);
	}
}